package com.example.nacos.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.nacos.entity.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 产品Mapper接口 - 使用从数据源1
 */
@Component
@Mapper
@DS("slave1")
public interface ProductMapper extends BaseMapper<Product> {
    int batchInsertTest();
}